text optional default (empty string)The string to escape. Apostrophes in it become backslash-apostrophe and any line breaks become single spaces; everything else is passed through unchanged. Defaults to an empty string, which yields an empty result. Remember that a literal colon in this text would otherwise be read as a parameter break - escape it as hash-colon.
{javascript:I'm here}
{javascript:alert('Saved')}
{javascript:Hello world}
{javascript:say "hi"}
{javascript:it's o'clock}
{javascript:ratio is 3:1}
{javascript:ratio is 3#:1}
onclick='note({javascript:Owner is O'Brien})'
{javascript:line one
line two}