How to remove while fetching the field in DoQuery ?

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered

Hi,

I have created a log filed and when trying to read that field in DoQuery it is showing <br/>tags. Is there any way where i can read the field values in a single line text without those <br/> tags?

Photo of Geetanjali

Geetanjali

  • 42 Points

Posted 2 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,064 Points 20k badge 2x thumb
Use a regular expression with a global flag to remove all <br/> tags. Example:

"Hello<br/>World<br/>How Are You Today?".replace(/<br\/>/g," ")


"Hello World How Are You Today?"