Skip to content

Commit

Permalink
Fixed skipping some of the data table columns in script generation
Browse files Browse the repository at this point in the history
  • Loading branch information
seanrcollings committed Oct 7, 2024
1 parent 8e5d8fd commit 2f078cd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'digest/md5'
require 'httparty'
require_relative "./mathml2asciimath"
require "byebug"

module Moodle2AA::Moodle2
class Parsers::QuestionParsers::Wiris::QuestionParser < Moodle2AA::Moodle2::Parsers::QuestionParsers::QuestionParser
Expand All @@ -15,8 +15,8 @@ def parse_question(node, questiontype = nil)

def clean_text(text)
text = fix_html(text)
xml = Nokogiri::XML(text)
xml&.root&.text || text
html = Nokogiri::HTML(text)
html&.root&.text || text
end

def fix_html(content)
Expand Down

0 comments on commit 2f078cd

Please sign in to comment.