Reputation: 6323
I need to escape non HTML tags to convert a plain text into a valid HTML, how can I do that?
I'm using ruby, but I may use an external tool
Upvotes: 0
Views: 428
Reputation: 387993
You can use CGI::escapeHTML
to escape all special HTML characters so you can safely paste the content into HTML as text.
Upvotes: 1