• Resolved room34

    (@room34)


    I’ve used this plugin a number of times and have been very pleased with it. Now I’ve run into a bit of a snag.

    I have a client who wants to put line breaks into their replacement string. We tried inserting a couple of br tags, but the HTML code is just output directly… meaning the tag characters are being escaped.

    I should note that we are using this to replace translatable strings in WooCommerce email templates… maybe this wouldn’t be an issue in regular page output.

Viewing 1 replies (of 1 total)
  • Plugin Author Lee Willis

    (@leewillis77)

    Hi;

    Say What? doesn’t have any restrictions that stop you putting markup in the replaced string.

    However … it also has no control over what happens with that string. In many cases, strings aren’t output as-is, but are escaped by plugins/themes for security reasons. I suspect that’s what you’re seeing here. In that case, you obviously can’t enter markup without it being escaped before being used.

    That’s not to say that you couldn’t use markup in other situations though.

    Hope that explains!

Viewing 1 replies (of 1 total)
  • The topic ‘Is it possible to enter HTML in the replacement string?’ is closed to new replies.