You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix RuntimeError in REXML::Parsers::BaseParser for valid feeds (#199)
GitHub: fixGH-198
Change `#entity` to not match against default entities
After this change, the following example will not raise a RuntimeError:
```ruby
# rexml/refactor_entity_example.rb
$LOAD_PATH.unshift(File.expand_path("lib"))
require "rexml/parsers/baseparser"
valid_feed = "<p>#{'A' * 10_240}</p>"
base_parser = REXML::Parsers::BaseParser.new("")
base_parser.unnormalize(valid_feed) # => "<p>" + "A" * 10_240 + "</p>"
```
Default entities now gets substituted by this block instead
https://github.com/ruby/rexml/blob/e14847cee53d26eb162ad786ba12e3cd7a86fce0/lib/rexml/parsers/baseparser.rb#L560-L563
---------
Co-authored-by: Sutou Kouhei <kou@clear-code.com>
Co-authored-by: NAITOH Jun <naitoh@gmail.com>
0 commit comments