Problem/Motivation

Adding the following token to the token filter:

[node:summary]

Causes the following output to be produced in the mastodon form:

<p>This is the summary of the node.</p>

Posting this to mastodon causes escaped HTML tags to be included in the status update.

Proposed resolution

Add a call to strip_tags() to remove HTML from the text before it is added to the text area. This will prevent messy updates from being pushed to mastodon.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

philipnorton42 created an issue. See original summary.

stevenpatz’s picture

I'll take a look at this one, sometime this week.

stevenpatz’s picture

Assigned: Unassigned » stevenpatz

philipnorton42’s picture

Status: Active » Fixed

Thank you for this @stevenpatz. Sorry for the delay, I haven't been able to get to this all week.

The change looks good! Merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

philipnorton42’s picture

Status: Fixed » Closed (fixed)

Released in version 1.0.0-beta2.