add HTML tag to a string

/ Published in: ActionScript
Save to your folder(s)

This is a handy little function that takes the htmlText value of a TextField and ads a specified tag at the beginning and end of the string. Handy for quick formatting tags such as bold, italic, underline, but could be used to add complex style data as it takes any string value.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.