ZF-10119: Infinite loop in StripTags

Description

Hello,

using special characters (we do not where they come from, we received this character from our blog platform), StripTags enters in an infinite loop when trying to remove the comments

I'll attach a test case that fail, a proposition of patch that solve the problem.

Regards,

Raphaël Dehousse

Comments

The test case that fail because of a max execution time exceeded

And a patch that solve the problem

Maybe there is a reason with the "u" modifier was there, so, maybe it's not the good solution, but in any case, like that, the test pass

Thanks!

Best regards,

Raphaël Dehousse

Without the "u" modifier any unicode regex will fail. This is a negotation of existing functionality.

Therefor this patch is not accepted.

Added UTF8 tests. Patch works as expected and has been added.