artesaos / seotools

SEO Tools for Laravel
MIT License
3.12k stars 506 forks source link

Escape HTML special chars in render like 'Test "quote" > test' #289

Closed AlexTator closed 1 year ago

AlexTator commented 1 year ago

What steps will reproduce the problem?

SEOTools::setTitle('Title with "quote" > ActionType'); Breaks HTML opengraph and twitter title tags.

What is the expected result?

Transform special chars to not be used as HTML chars

J-Brk commented 1 year ago

Thank you for your issue report.

I have reviewed your issue and are unable to simulate the problem. I think this issue has been fixed recently already. Are you using the latest version?

SEOTools::setTitle('Title with "quote" > ActionType');

Outputs the following for me: <meta name="twitter:title" content="Title with &quot;quote&quot; &gt; ActionType"> <meta property="og:title" content="Title with &quot;quote&quot; &gt; ActionType">

AlexTator commented 1 year ago

My bad. I was using an old version..

Thanks for the answer!