Hi I am baffled.
I am trying to modify some html using
$dom = new DOMDocument();
$dom->preserveWhiteSpace = true;
$html = $dom->saveHTML();
I have my functions already worked out the above is what I have narrowed the error down to, all the rest of my code works probelm is when it loads html and saves html it seems to change this.
prevText: '<i class="fa fa-chevron-left"></i>',
nextText: '<i class="fa fa-chevron-right"></i>',
prevText: '<i class="fa fa-chevron-left">',
nextText: '<i class="fa fa-chevron-right">',
The rest of the document is fine just this portion changes and messes everything up.
When I remove the new DOMDocument(); code it works fine.
All the other stuff I am doing is working fine, just wondering is there anyway to fix it so it does not remove the tags.
Thanks in advance.