brauliobo
brauliobo

Reputation: 6323

Escape non HTML tags from plain text

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

Answers (1)

poke
poke

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

Related Questions