• Hi.

    There is a problem with special characters in the directory. The HTML entities are not being converted back. For example, in the URL provided, the ampersand is presenting incorrectly as the entity.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @krolyn,

    Can you please attach the screenshots of this issue so we can better understand what do you mean.

    Let us know.
    Regards.

    Thread Starter Krolyn Studios

    (@krolyn)

    @ultimatemembersupport How do you attach screenshots? I’ve already included a link to a page which clearly shows the problem. Look for the ampersand symbol and you’ll see that it presents as the entity &-a-m-p-; (I’ve included the dashes to prevent the ampersand symbol showing)

    This is also an issue in text area blocks.

    Thread Starter Krolyn Studios

    (@krolyn)

    @ultimatemembersupport Further to my last message, this is occurring in all textarea blocks and the directory tagline. Text boxes appear to be fine. What is required is htmlspecialchars_decode() or html_entity_decode().

    Thread Starter Krolyn Studios

    (@krolyn)

    @ultimatemembersupport Just wondering if this is being addressed?

    Thread Starter Krolyn Studios

    (@krolyn)

    @ultimatemembersupport This still remains unresolved. I have sent you a support ticket in reference. Ampersands still presenting as HTML entities on directory descriptions/bios and profile textarea fields.

    Thread Starter Krolyn Studios

    (@krolyn)

    This is a temporary fix for anyone coming across this issue —

    //* Fix for HTML entities in textareas
    add_filter( 'um_profile_field_filter_hook__textarea', 'eq_textarea_html_entity_fix', 100, 2 );
    function eq_textarea_html_entity_fix( $value, $data ) {
        if ( isset( $data['html'] ) && $data['html'] == 1 ) {
            return $value;
        }
        $value = html_entity_decode( $value );
        return $value;
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘HTML entities not being converted in directory.’ is closed to new replies.