Skip to content

Why so secretive about the API? #2527

Discussion options

You must be logged in to vote

Any string input to Marked.js is technically "valid". No matter what string you feed into marked.parse, you will get some HTML out. It just might not be the HTML you want (garbage in, garbage out). I.e., you could do marked.parse("ajl*gA#**@(*()**gg**s*G@(AUG)J*") and you would get some HTML (<p>ajl<em>gA#**@(</em>()<strong>gg</strong>s<em>G@(AUG)J</em></p> ) out. There's nothing secretive about it.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@i-am-the-slime
Comment options

@calculuschild
Comment options

@i-am-the-slime
Comment options

Answer selected by i-am-the-slime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants