correctly set UTF-8 encoding for TextFormatter input
This commit is contained in:
parent
87c87cd5ac
commit
3746336637
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$dom = new \DOMDocument();
|
$dom = new \DOMDocument();
|
||||||
$dom->loadHTML($string);
|
$dom->loadHTML('<?xml encoding="UTF-8">'.$string);
|
||||||
foreach($dom->getElementsByTagName('a') as $link) {
|
foreach($dom->getElementsByTagName('a') as $link) {
|
||||||
$link->setAttribute('target', '_blank');
|
$link->setAttribute('target', '_blank');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue