ok so what im wanting it to prevent errors in a string example
the sting wouldnt be right because the color tags are inside each other so what im wanting to do is make a function that will check the string to make sure all color tags are closed correct and return a result like this
- Code:
str = '[color=red]just some random[color=green]text[/color][/color]'
the sting wouldnt be right because the color tags are inside each other so what im wanting to do is make a function that will check the string to make sure all color tags are closed correct and return a result like this
- Code:
str = '[color=red]just some random[/color][color=green]text[/color]'