Ready to get started?Download WordPress


wp changes characters of bookmarklet in post (1 post)

  1. juaron
    Posted 4 years ago #

    I want to show a link to a bookmarklet in a post, but wp changes some characters in it:
    I have this simple function:

    for(i=2; i>0; i--){

    which looks like this in a normal bookmarklet:
    this is a <a href='javascript:(function(){for(i=2;i>0;i--){alert("test");}})()'>bookmarklet</a> (I hope)

    however, wp renders it like this:
    this is a <a href='javascript:(function(){for(i=2;i>0;i–){alert(”test”);}})()’>bookmarklet</a> (I hope)

    Why is this, and how can I fix this?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.