Parsing help

Started by lm on 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!
The simplest solution would be to use REPLACE twice.
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 :)

Reply