Text to HTML in JavaScript


/ Published in: JavaScript
Save to your folder(s)

Hopefully this covers just about everything. This code has far more lines than htmlify.js but seems to work ok.

(I just remembered that " // Loop through the clear text " has no loop breaker - will post a fix, but it's not a show-stopper for most applications.)

As far as I can tell;

brackets are dealt with properly
punctuation is moved away from the link.

This script is actually an HTML document that contains test
patterns with raw and browser-view outputs.

Comments are welcome.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.