[resolved] How do you send in HTML as ShortCode parameter? (2 posts)

  1. wp3678
    Posted 7 years ago #

    I am currently researching ShortCodes but when I send in HTML as a parameter it is encoded so when output it is not processed as HTML by the browser it is processed as text. e.g. <, > have all been converted etc.

    [testshortcode paramtest="<b>test</b>"]

    If you use paramtest is the shortcode function <b>test</b> is output instead of the text test bolded.

    I think I need a reverse function of wp specialchars function?

    Any help appreciated.


  2. wp3678
    Posted 7 years ago #

    Simple when you know how wp_specialchars_decode

Topic Closed

This topic has been closed to new replies.

About this Topic