Skip to content

Testing demo insertion

I added some potentially dangerous code to automatically turn code examples (things in <code> elements with class demo into actual HTML or javascript that are added to the post. The javascript part works; I used it in the last post; here's testing the HTML insertion:

  <div style="background: purple; margin: 2px">This is a test</div>

And more testing:

  <div style="background: #080; margin: 2px">This is a test</div>

{ 1 } Comments

  1. Danny | August 14, 2008 at 9:17 pm | Permalink

    <div style="border: 5px solid blue">Trying XSS by inserting in comments should fail</div>

Post a Comment

Your email is never published nor shared. Required fields are marked *