Forum Discussion

Adam_T_7105's avatar
Adam_T_7105
Icon for Nimbostratus rankNimbostratus
Sep 28, 2018

Using Stream Profile to Replace HTML code with double quotes

Hi Everyone, I am trying to use a stream profile to remove a block of text from a HTTP response, specifically, the text i'm trying to match looks like:

The problem I am running into is that I can't seem to get this to work with the double quote character. I've tried delimiting all the quotes with \ already, and changing them for their hex codes \x22, but nothing seems to work. Anyone have any ideas?

This is the code I'm using:

 

 

 

when RULE_INIT {
  set static::search ""
  set static::replace ""
}

when HTTP_RESPONSE {
STREAM::expression @${static::search}@${static::replace}@
STREAM::enable
}