I am currently facing some challenges with a project where the process of converting text into URLs is not functioning properly. This issue arises when certain URLs contain a quote mark, for example somethi'n.png
.
The problem occurs when using these image paths as background images, which disrupts the CSS properties and triggers an invalid property value
warning.
Is there a way to resolve this without having to correct all the image paths individually?
'<div style="background: url('+ad.featured_image+')" ...