Title: [Plugin: User Access Manager] Broken HTML handling
Last modified: August 19, 2016

---

# [Plugin: User Access Manager] Broken HTML handling

 *  [gabrielinux](https://wordpress.org/support/users/gabrielinux/)
 * (@gabrielinux)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-user-access-manager-broken-html-handling/)
 * Hello there,
 *  I have been testing this plug-in on my site, with the latest version of WordPress
   and Arras Theme. What a great plug-in! Thank you for your efforts in making it.
 *  I wanted to give you some feedback:
    1. **Broken custom HTML entered in settings page.** When I enter HTML code into
       custom message for the post body, it saves OK to the database (with quotes, 
       backslashes, etc. escaped). However, when the message is displayed to a user,
       the HTML code in it comes out with these backslashes, thus invalidating the 
       code and any hyperlinks and custom JavaScript. I temporarily fixed this by making
       a change towards the end of the _getPost() function in UserAccessManager.class.
       php. I changed “$post->post_content = $uamPostContent;” to “$post->post_content
       = stripslashes($uamPostContent);”. I imagine the same problem plagues other 
       settings too.
    2. **Option to use Excerpt OR more tag.** It would be really great to be have an
       option to display a post/page excerpt as a teaser, instead of the contents up
       to the more tag. The reason for this is because I often sanitize the post in
       the excerpt, that way, non-logged in users can see something not-so-sensitive
       in search pages. I do not want them to see the contents of the actual post, 
       even if I do have a more tag, because anything before the more tag has not been
       sanitized to be viewable by the public. Related to that, it would also be nice
       to **display the excerpt before the no-access message** on single.php whenever
       the post does not contain a more tag. The behavior right now is to only display
       the no-access message when the post does not contain a more tag.
 * Best regards,
 * Gabriel Mongefranco
    [http://gabriel.mongefranco.com](http://gabriel.mongefranco.com)
 * [http://wordpress.org/extend/plugins/user-access-manager/](http://wordpress.org/extend/plugins/user-access-manager/)

The topic ‘[Plugin: User Access Manager] Broken HTML handling’ is closed to new 
replies.

 * ![](https://ps.w.org/user-access-manager/assets/icon.svg?rev=1563783)
 * [User Access Manager](https://wordpress.org/plugins/user-access-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-access-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-access-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/user-access-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-access-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-access-manager/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [gabrielinux](https://wordpress.org/support/users/gabrielinux/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-user-access-manager-broken-html-handling/)
 * Status: not resolved