WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. wp3678
    Member
    Posted 5 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.

    TIA

  2. wp3678
    Member
    Posted 5 years ago #

    Simple when you know how wp_specialchars_decode

Topic Closed

This topic has been closed to new replies.

About this Topic