Support » Plugin: Plugin Notes Plus » modified code

  • Resolved strepi


    i tried to insert this code in a note:

    change this line:
    <a href="<?php echo $link; ?>">
    to this:
    <a href="<?php echo $link; ?>" target="_blank">

    When I save the note, the code is changed.
    What can i do?

    • This topic was modified 2 years, 4 months ago by strepi.
Viewing 1 replies (of 1 total)
  • Plugin Author jamiebergen


    Hi there,

    It looks like you’re losing the <?php echo $link; ?> portion of your note. That’s because the plugin takes measures to ensure that nobody tries to execute malicious PHP code via a note.

    However, you can make your note display as intended. I’d recommend running your note through an HTML encoding tool. (E.g., this one:

    I copied the note you have above into the tool and confirmed that the output, when pasted in as a new note, renders as expected.

    I hope that helps!

Viewing 1 replies (of 1 total)
  • The topic ‘modified code’ is closed to new replies.