Support » Plugin: Inline Google Spreadsheet Viewer » HTML code in spreadsheet doesn't work anymore with 0.45

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Meitar

    (@meitar)

    This was intentional. As mentioned in the change log for version 0.4.5:

    Security: Added additional output escaping.

    Why are you using HTML code inside spreadsheet cells?

    Thread Starter parioni8

    (@parioni8)

    Because in my spreadsheet I use HTML TAG like “span”:

    e.g.: <span style=”font-color:#ff0000;”>HELLO!</span>

    How can I use this now?

    Plugin Author Meitar

    (@meitar)

    You can’t. That’s the whole point of output escaping.

    Don’t put HTML in cells. I can think of literally no good reason why your data should contain HTML. If you have a compelling reason, share it. Otherwise, find another way to do what you’re doing.

    Your example of a <span style=""> should be replace by CSS. See the very first question in the FAQ (“The default style is ugly. How can I change it?”) for how you can target an individual cell using this plugin.

    Thread Starter parioni8

    (@parioni8)

    Can I disable output escaping? Maybe from my functions.php?

    Plugin Author Meitar

    (@meitar)

    No. To disable output escaping, you have to change the plugin code. Remove the call to esc_html on line 134.

    Thread Starter parioni8

    (@parioni8)

    Nothing.

    I commented this line, but nothing.

    ‘$td = esc_html($td);’

    Like this:

    ‘//$td = esc_html($td);’

    Like this:

    ‘$td = //esc_html($td);’

    and like this:

    ‘$td = $td; //esc_html($td);’

    but nothing.

    How to do?

    Thread Starter parioni8

    (@parioni8)

    Please explain me the problem. How to do?

    Can you post a modified code for disable escape?

    Thread Starter parioni8

    (@parioni8)

    Please can you explain me the problem? How to do?

    Can you post a modified code for disable escape?

    Plugin Author Meitar

    (@meitar)

    No. I already gave you a solution.

    You will need to:

    • downgrade to version 0.4.4,
    • comment out line 134 of version 0.4.5, or
    • write your own plugin.

    This is my last reply and should be yours, too.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘HTML code in spreadsheet doesn't work anymore with 0.45’ is closed to new replies.