Hi I have the following situation where I have tags wrapped around my contents and the following input
[hello]
Text here
[/hello]
[hello]
Text here 2
[/hello]
The output is
[hello]
Text here
[/hello]
[hello]
Text here 2
[/hello]
The desired output should be
[hello]
Text here
[/hello][hello]
Text here 2
[/hello]
PS: THanks for the answer, but since its user input, there's a chance of spacing [hello]
Is there a way using php, to trim the first around the opening tag ([hello]) and closing tag([/hello])? Thanks