Try the first "[" using instr () result 6. Then print the first 5 characters or "hello", then remove the text of the first 5 characters. text = right (text, len (text) -5) or "[b] [g] as [/g] is [c]?"
now checks the value of the second character (you know the first is a [) if it is a "/" marks the error otherwise you will have the tag open. circles and its closing tag (in this case does not exist) if there is a closing tag (tag = "[/ b]") and dies on the html tag open. redo the procedure and when you try on the close tag (using instr ()) and find it will result in 8. so you have to take the text content between 4 (the first 3 are the opening tag) and 7 (8 starts the closing tag) and printed with html tags. hours to eliminate the print + characters opening and closing tag (respectively 3 and 4) then a total of 11 characters (function right ()). Prints the HTML tag on and take out the 3 characters from the text variable that you have left. Splitting the variable tag and closing tag for each die on the html tag. Finally, the three dots, remove it.
Bookmarks