I have Ruby code that supports HTML fragmentation with Nokogiri.
When user input text with "<"
to the application, Nokogiri::HTML.fragment
make it to the custom HTML tag.
If a user enters text like
"One <two three"
the application will display it like
"one <two three></two>"
I'm using Nokogiri::HTML.fragment(html, encoding = 'UTF-8')
.
Does anyone know how to fix it?