We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

oEmbed Fix - Part 1: Broken Special Characters in link preview processing | Forum

Topic location: Forum home » Support » General Questions
Peter
Peter Jan 31 '20

How to fix oEmbed corrupted content previews when sharing an url whose "title" and "description" contain special characters (e.g. ’,&,",)


Open: ow_libraries/oembed/oembed.php

Title:


replace line 154 with: $title = empty($matches[1]) ? null : mb_convert_encoding($matches[1], 'UTF-8', "HTML-ENTITIES");

Description:


replace line 163 with: $description = empty($matches[1]) ? null : mb_convert_encoding($matches[1], 'UTF-8', "HTML-ENTITIES");

That's it, you're welcome :)

The Forum post is edited by Peter Jan 31 '20