lm — 27-Mar-2022/12:41:51-7:00
I have an html text
I want to comment out some tags (eg. <svg> ... </svg>)
How do I insert a comment tag "<!--" before and after "-->" the tag that I want to comment out ?
Thanks!
Kaj — 27-Mar-2022/14:53:26-7:00
The simplest solution would be to use REPLACE twice.
Sergey_Vl — 27-Mar-2022/22:15:34-7:00
replace/all html_text "<svg>" <!--- <svg>"
replace/all html_text "</svg>" </svg> --->"
for more info see
skill level 1 - http://www.rebol.com/docs/words/wreplace.html
skill level 2 - in console type "? replace" and hit Enter
skill level 3 - in console type " "source replace" and hit Enter :)