Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PaydenKP's avatar

Is there a way to have responsive design and obfuscate text? i.e. sentences and line breaks

I have this span:

<span title='Department'>{!!Html::obfuscate($employee->dept->name)!!}</span>

LaravelCollective/Html::obfuscate randomly switches characters for other things to stop scrapers. It's best used with emails, but there are other things I wish to use it for.

However, when I obfuscate something like this, it doesn't responsively line break when the parent element shrinks.

Is there a better alternative to this that allows for line breaking obfuscated text content?

0 likes
0 replies

Please or to participate in this conversation.