Skip to content

Button shortcode renders with the wrong encoding #110

Description

@acobster

Expected behavior

As an WP admin, I want to be able to include special characters in my button markup:

[button]<a href="/">button’s apostrophe</a>[/button]

Note about copy/pasting: that's the &#39; entity in "button's apostrophe", an example of a character that get re-encoded incorrectly when saveHTML() gets called.

This should render:

<a href="/" class="btn">button’s apostrophe</a>

Actual behavior

Instead, it renders something like:

<a href="/" class="btn">button&acirc;&#128;&#153;s apostrophe</a>

Steps to reproduce behavior

Put the above shortcode snippet in an RTE

What version of WordPress/PHP/Timber/Conifer are you using?

WP 5.2, Timber 1.8, Conifer 0.6

How did you install Conifer? (for example, via git clone, GitHub zip download, Composer/Packagist?)

GitHub zip download

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions