DEV Community

Discussion on: Formatting Code for DEV Comments and Posts

Collapse
 
thepeoplesbourgeois profile image
Josh

Boss-level debugger 😎

My original thought was the trusty rusty backslash, but that can have all kinds of unexpected parsing behaviors compared to the HTML character codes.

Although, now I wonder what subset of HTML is parsed and what subset is scrubbed, and if there are backdoors in every dev.to post 😰

... ahhh, it's probably fine.

Thread Thread
 
chrisachard profile image
Chris Achard

I actually went digging through the dev.to source after I posted this, and found that answer! Here you can see the allowed tags and allowed attributes:

github.com/thepracticaldev/dev.to/...

Neat!