- 🇳🇿New Zealand danielveza Brisbane, AU
I was rerolling this because on the surface it does make sense to skip all the processing if there is no images.
I had one thought while I was doing it that if we aren't calling
Html::serialize
anymore, things likescript
won't be stripped anymore since that happens in the serialize function. So if there is a text format with only this filter enabled, scripts will get through.In which case we could change the early return to be
return Html::serialize($text);
. But I'm not sure if thats worth doing since the code skipped by the early return would be minimal.Interested in hearing thoughts.