How to replace backslashes?

I have a situation where I am trying to get rid of these backslashes to format the html for an html renderer, but when I try to use REPLACE_ALL on the backslashes it highlights "unexpected " and will not let me save it.

How to replace backslashes???

<div class=\"activity-attached-gif-container\"><div class=\"gif-image-container\"><div class=\"gif-player\"><video preload=\"auto\" playsinline poster=\"https://media2.giphy.com/media/D57U55kGHEmdPpN7fT/480w_s.jpg?cid=347b027am7o5y8l25vu5xkmsblyr4ncuv3p4ua9sf641rwaf&rid=480w_s.jpg&ct=g?1154574398=2322595677\" loop muted><source src=\"https://media2.giphy.com/media/D57U55kGHEmdPpN7fT/giphy.mp4?cid=347b027am7o5y8l25vu5xkmsblyr4ncuv3p4ua9sf641rwaf&rid=giphy.mp4&ct=g?2606218800=1120974027\" type=\"video/mp4\"></video><a href=\"#\" class=\"gif-play-button\"><span class=\"bb-icon-play-thin\"></span></a><span class=\"gif-icon\"></span></div></div></div>

Can you show the formula as well?
That should be this:

REPLACE_ALL(appVars.html, "\", "")
1 Like

When I try that, it says unexpected \ was found and will not let me save it. I will paste the formula later when I get to my pc

1 Like

Okay, I see the error now. It should work this way:

REPLACE_ALL(appVars.HTML, "\\", "")

This may seem weird, but it turns out that You have to escape the “escape” character to make it work…

2 Likes

Thank you. It works! While we are one this, do you know how to make text skip a line, such as when we are removing a bunch of things from paragraphs and the spaces between paragraphs end up getting removed?

I am not really sure what do you mean by this… Is it in connection with HTML? or a text type variable in Composer?