I'm using angular in my project. But it doesn't matter)
I have to use DOMParser to check and edit some data in one field (.Content
)
And all was ok... I took iPad 3 with installed iOS 7 and was suprised...
Why DOMParser
isn't working on iOS 7 (but works on iOS 8+)?
How can i solve this issue on iOS 7? Maybe there are some workarounds?
Here is part of my code:
var parser = new DOMParser();
var doc = parser.parseFromString('<div id="fetchContent">' + $scope.news.Content + '</div>', "text/html");
...
$scope.news.Content = doc.getElementById('fetchContent').innerHTML;
if i delete this code - app is working normally, but with DOMParser seems that it raise en error...