Quote:
Originally Posted by Mister L
I do see your point, but I think there might be solutions to avoid making things more complicated than they need to be. In many cases the toc will link to the file. So the added tag would be the first tag in that file. No need to worry about nesting problems or malformed tags in that case.
|
"In many cases" is not useful programmatically. Not when trying to create a script that must work in ALL cases (if harm is to be avoided).