Search
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (271 Bytes)
Bug #8302
» text_entity_filter.rb
ohai (Ippei Obayashi)
, 04/20/2013 05:29 PM
require
'rexml/document'
doc
=
REXML
::
Document
.
new
(
<<
EOS
)
<!DOCTYPE root [
<!ENTITY f "foo">
<!ENTITY b "bar">
]>
<root>
</root>
EOS
root
=
doc
.
root
p
REXML
::
Text
.
new
(
"foo bar"
,
false
,
root
,
false
,
nil
).
to_s
p
REXML
::
Text
.
new
(
"foo bar"
,
false
,
root
,
false
,
[
"f"
]).
to_s
« Previous
1
2
Next »
(1-1/2)
Loading...