angular / angular.js

AngularJS - HTML enhanced for web apps!
https://angularjs.org
MIT License
58.83k stars 27.51k forks source link

The sanitizer was unable to parse the following block of html: <a... #9790

Closed maeishoj closed 9 years ago

maeishoj commented 9 years ago

I am getting this error when I try to parse the following html:

<p class="main_heading">A Snapshot of Corruption in Finland 
  <img width="211" height="158" src="/media/3944292/Helsinki_211x158.jpg" alt="Helsinki" style="float: right;" />
</p>
<p>The overall aim of this country profile is to provide companies and organisations with an analysis of how corruption affects Finland's political environment and business climate. Throughout the profile, readers can find detailed descriptions of the country's
  efforts in curbing corruption, corruption-related legislation, risk-prone sectors and industries and more. This profile's <a href="/{localLink:139242}" title="General Information">General Information</a> chapter provides an overview of anti-corruption
  activities and corruption risks in relation Finland's political, business and regulatory environments. Some of this profile's findings regarding Finland's anti-corruption activities include:</p>
<ul>
  <li>The level of corruption in Finland is generally low, but corruption prevention relies more on a system of public trust, openness and public scrutiny than on formal rules and regulations.</li>
  <li>Petty and administrative corruption has more or less been rooted out of Finland, and it is very unlikely that citizens as well as businesses will encounter bribery in relation to obtaining public utilities or when interacting with public officials.</li>
  <li>The Political Parties Act and the Candidate’s Election Funding Act aim at strengthening transparency of the financing of political parties and donations to individual office holders.</li>
</ul>
<p>Despite an overall strong performance, Finland is not immune to corruption. Challenges include:</p>
<ul>
  <li>While Finland's general investment climate is largely corruption-free, several cases have revealed the existence of so-called "old boys' network" and inappropriate candidate and election funding; ie, a culture of non-transparent business dealings between
    politicians and businessmen with close personal ties.</li>
  <li>Traditional bribery almost never takes place in such networks, but inappropriate gifts, personal favours and conflict of interest have instead been pointed out as problem areas.</li>
</ul>
<p>Detailed descriptions of the level of corruption in a number of sectors are outlined in the profile's <a href="/{localLink:139243}" title="Corruption Levels"><span class="internal-link">Corruption Levels</span></a>. For a more detailed analysis of government,
  media and civil society anti-corruption activities, visit the <a href="/{localLink:139291}" title="Public Anti-Corruption Initiatives"><span class="internal-link">Public Anti-Corruption Initiatives</span></a> and
  <a href="/{localLink:139295}" title="Private Anti-Corruption Initiatives"><span class="internal-link">Private Anti-Corruption Initiatives</span> 
  </a>chapters.</p>
<p> </p>
<p class="bodytext">Publication date: November 2013</p>
<p class="bodytext">Data verified by <a href="http://www.ganintegrity.com/" target="_blank">GAN Integrity Solutions</a>
</p>
<p class="bodytext">
  <img width="388" height="114" src="/media/4000128/European-Commission.jpg" alt="European Commission" />
</p>

Any idea what is the issue? I'm pulling html from my site and only happened with this particular country profile. Any help is appreciated.

lgalfaso commented 9 years ago

I am not seeing any issues http://jsfiddle.net/xz2m18tv/1/ If you find any issues with angular, please create a plunker that shows the error