Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @wouterbruijning,

    This problem occurs due to the wp-typography plugin. Follow the step to remove CAPS and a special character like & (ampersand) in a title (Messes up the HTML)

    Go to Settings >> wp-typographpy >> CSS Hooks tab >> uncheck Ampersands and Caps settings.

    Thanks

    @baljitdhanjal While that is a workaround, you are using the wrong function in your code. If you want a title for attribute use (i.e. without any embedded tags), use the_title_attribute.

    (On a closer look, it seems like it’s not about stripping HTML tags here, but about CSS rules that are too broad. Just make them more specific, or use the_title_attribute as suggested above, if this is for a table-likr view.)

    Thread Starter wouterbruijning

    (@wouterbruijning)

    Hi @baljitdhanjal,

    Thank you! This is a very good service from you. And I feel a little ashamed that I didn’t check this before ?? The issue is solved for me. Thank you!

    Wouter

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘CAPS and special character mess up HTML’ is closed to new replies.