Support » Plugin: Plugin Notes Plus » modified code

  • Resolved strepi

    (@strepi)


    Hello,
    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?
    Thanks

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

    (@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: https://codebeautify.org/html-encode-string).

    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!
    Jamie

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