8000 Fix a bug that Stream parser doesn't expand the user-defined entity references for "text" by naitoh · Pull Request #200 · ruby/rexml · GitHub
[go: up one dir, main page]

Skip to content

Fix a bug that Stream parser doesn't expand the user-defined entity references for "text" #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Changed the XML description of the test code to here document format.
  • Loading branch information
naitoh authored Aug 21, 2024
commit c636358a04a27e19ee22bf7a2c9bf5e2afa3abb2
12 changes: 7 additions & 5 deletions test/test_stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,13 @@ def entity(content)
end

def test_entity_replacement
source = '<!DOCTYPE foo [
<!ENTITY la "1234">
<!ENTITY lala "--&la;--">
<!ENTITY lalal "&la;&la;">
]><a><la>&la;</la><lala>&lala;</lala></a>'
source = <<-XML
<!DOCTYPE foo [
<!ENTITY la "1234">
<!ENTITY lala "--&la;--">
<!ENTITY lalal "&la;&la;">
]><a><la>&la;</la><lala>&lala;</lala></a>
XML

listener = MyListener.new
class << listener
Expand Down
0