SyntaxFix
Write A Post
Hire A Developer
Questions
You don't have to do a replace, you can get the length of the children text and subtract that from the overall length, and slice into the original text. That should be substantially faster.