Title: modified code
Last modified: September 1, 2018

---

# modified code

 *  Resolved [strepi](https://wordpress.org/support/users/strepi/)
 * (@strepi)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/modified-code/)
 * 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 7 years, 8 months ago by [strepi](https://wordpress.org/support/users/strepi/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [jamiebergen](https://wordpress.org/support/users/jamiebergen/)
 * (@jamiebergen)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/modified-code/#post-10647182)
 * 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](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.

 * ![](https://ps.w.org/plugin-notes-plus/assets/icon.svg?rev=1821775)
 * [Plugin Notes Plus](https://wordpress.org/plugins/plugin-notes-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/plugin-notes-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/plugin-notes-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/plugin-notes-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/plugin-notes-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/plugin-notes-plus/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [jamiebergen](https://wordpress.org/support/users/jamiebergen/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/modified-code/#post-10647182)
 * Status: resolved