Skip to:
Content
Pages
Categories
Search
Top
Bottom

Xprofile is escaping HTML


  • edwardtownend
    Member

    @edwardtownend

    Hi, I’ve created my own profile field type, which I’m using to create an Tiny MCE box so that users can have formatted text on their profiles. It’s working fine, except that when the field is retrieved in the admin area only, the html tags are converted to their < and > equivalents. This means rather than rendering HMTL already in the field, Tiny MCE displayed the HTML as text. I’ve searched through xprofile trying to find where it’s escaping the HTML and have failed so far. Does anyone know what function is causing this so I can unhook it and write a replacement? In return I’ll turn this into a plugin when it’s complete :)

Viewing 2 replies - 1 through 2 (of 2 total)

  • edwardtownend
    Member

    @edwardtownend

    Bump!

    I should think it’s the xprofile_filter_kses() as that returns $content, $xprofile_allowedtags built from $allowedtags if it is that kses filter you should be able to filter the allowed tags.

    It may also be ‘xprofile_sanitize_data_value_before_save’

    Anyway the file you need to read through is /bp-xprofile/bp-xprofile-filters.php

    one heck of a lot of filters to read through though :)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Xprofile is escaping HTML’ is closed to new replies.
Skip to toolbar