Jump to content

Textarea - are tags closed


x1nick

Recommended Posts

Hi

 

May have noticed recently was asking for html syntax javascript highlighting and got this working 100%

 

Now as this is build into my CMS I need something to check that the tags are closed when the user presses save.

 

Basically the user can use tags like this

{if error}

{else}

{/if}

 

{foreach details}

{/foreach}

 

I need to make sure that the user has added the closing tag for every opening tag they have entered. (can be more than one!)

 

Whats the best approach to this through javascript?

Link to comment
https://forums.phpfreaks.com/topic/169456-textarea-are-tags-closed/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.