Displaying Quotation Marks In the Text Inside Shortcodes

Here’s a shortcode for a spoiler in the Shortcode Ultimate plugin:

[su_spoiler title=”<b>My “title”</b>” style=”fancy” icon=”plus-circle”]

The above shortcode won’t work because it takes the quotation marks around the world title as the ending quotation mark for the title attribute.

This can be fixed by using the <q></q> HTML element. The following shortcode will work properly:

[su_spoiler title=”<b>My <q>title</q></b>” style=”fancy” icon=”plus-circle”]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s