This almost works fine, although when I am replacing text in the HTML file, it doesn’t come out for all the replacements; particularly the ‘£/€700’ part.
All numbers formatted in this way need to be replaced like this #amount=700GBP# which is what is happening for all numbers bar this one, from what I can tell this is because adding this ‘GBP#’ ending on this particular bit of code jumps it to a new line, and returns the value ‘#amount=700’ with no ending. This number is also in a Bullet point section, which could also be effecting things.
Does anyone have any thoughts of a way to retain this ending for this number, or in instances such as these?
If you are not able to directly put what ever you need to replace inside replace what you can do is
Make a text file and keep what ever you need to replace in that text file (assume you have . -dot-). now read that text file and your output variable (assume str) from read text file will contain that your .(dot)
Am not able to open your workflow because project.json file is missing. From what your problem statement what i understood is that .replace method is not working for few of the strings in your html text. especially a Bullet Point (.)
It’s the Terms and conditions section at the end, all text in between the '^'s. But with all currencies eg: £/€700 in the format #amount=700GBP#. Everything replaced accordingly and the output remaining in the same format.