• Resolved nicmare

    (@nicmare)


    I try something like this:
    SimpleLogger()->warning("Something went wrong: <a href=".get_permalink($post_id).">".get_field("product_name")."</a>");

    But SH does not render the html code! What can i do?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author eskapism

    (@eskapism)

    It does escape all html so nothing dangerous can be logged, so it can’t be used for Cross-site scripting (XSS) injection.

    If you want to show html (that you really really trust) then you can perhaps modify use the filter simple_history/row_details_output to modify the output or write your own logger (pretty easy, there is quick guide on the simple history website).

    Thread Starter nicmare

    (@nicmare)

    Thanks. Just fyi: your website (follow the link) crashes after a while. seems there is a script error.

    Plugin Author eskapism

    (@eskapism)

    Thanks, I noticed that too! Very strange…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to insert HTML (links) in custom warning Message?’ is closed to new replies.