Answers for "replace \n with breakline in type scripte"

1

replace n with breakline in type scripte

str = str.replace(/(?:rn|r|n)/g, '<br>');
Posted by: Guest on January-20-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language