hi.. can some one please explain this to me? im not clear what its
actually means.... thx for helping~~~
doc = Document.new(''<!DOCTYPE
foo [ <!ENTITY ent "replace"> ]><a>replace
&ent;</a>'',{:raw=>:all})
doc.root.text #-> "replace &ent;" doc.to_s # Generates:
#
<!DOCTYPE foo [ # <!ENTITY ent "replace"> #
]><a>replace &ent;</a>
and shud i place it in the xml file or ...other places?
cheers
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---