Jump to content

unterminated string literal Error?


Monkuar

Recommended Posts

var lol="hey <br>";
document.REPLIER.Post.value=lol.replace(/<br\s*[\/]?>/gi, "\n");

 

I am trying to replace all <br> tags in my var "lol" but I get the "unterminated string literal" error on line 2 which is:

 

document.REPLIER.Post.value=lol.replace(/<br\s*[\/]?>/gi, "\n");

 

 

Any help?

Link to comment
https://forums.phpfreaks.com/topic/252887-unterminated-string-literal-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.