Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
Correct for non-English characters in [table-wrap], [media-object], […
Browse files Browse the repository at this point in the history
…img], [thumbnail]
  • Loading branch information
MWDelaney committed Dec 24, 2014
1 parent dc5f04e commit 5a8c7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -1978,7 +1978,7 @@ function scrape_dom_element( $tag, $content, $class, $title = '', $data = null )
$previous_value = libxml_use_internal_errors(TRUE);

$dom = new DOMDocument;
$dom->loadHTML($content);
$dom->loadHTML(mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8'));

libxml_clear_errors();
libxml_use_internal_errors($previous_value);
Expand Down

0 comments on commit 5a8c7cd

Please sign in to comment.