I am using angular in my project. But it does not matter)
I need to use DOMParser to check and edit some data in one field ( .Content )
And everything was in order ... I took the iPad 3 with iOS 7 installed and was surprised ...
Why is DOMParser not working on iOS 7 (but working on iOS DOMParser )?
How can I solve this problem on iOS 7? Perhaps 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 - the application works fine, but with DOMParser it seems that it causes an en error ...
source share