Locating tags in a string in PHP (with respect to the string with tags removed)
I want to create a function that labels the location of certain HTML tags (e.g., italics tags) in a string with respect to the locations of characters in a tagless version of the string. (I intend to use this label…