Hi everyone!
I have a problem with automatic <a> insertion. If I put the next HTML code in source window:
```
<div>
<a href="#">
<h3>
Title
</h3>
<p>
Text text text
</p>
</a>
</div>
```
and then I click the "source" button to toggle between design mode and source again the code change to:
```
<p> </p>
<div class="">
<h3>
<a href="#">
Title
</a>
</h3>
<p class="">
<a href="#">
Text text text
</a>
</p>
</div>
<p> </p>
```
Instead of one <a> statement I got two and also there are some new <p> statements also. Is there any switch to cancel this auto feature off or is this a bug?
I have this with v2.1.0 and v2.1.1 beta and on DNN 7.3 and 7.4.
Kind regards
Comments: ** Comment from web user: igorbizi **
I have a problem with automatic <a> insertion. If I put the next HTML code in source window:
```
<div>
<a href="#">
<h3>
Title
</h3>
<p>
Text text text
</p>
</a>
</div>
```
and then I click the "source" button to toggle between design mode and source again the code change to:
```
<p> </p>
<div class="">
<h3>
<a href="#">
Title
</a>
</h3>
<p class="">
<a href="#">
Text text text
</a>
</p>
</div>
<p> </p>
```
Instead of one <a> statement I got two and also there are some new <p> statements also. Is there any switch to cancel this auto feature off or is this a bug?
I have this with v2.1.0 and v2.1.1 beta and on DNN 7.3 and 7.4.
Kind regards
Comments: ** Comment from web user: igorbizi **
Hi tha_watcha!
I already enter that statement and it is working for <em> and <span> commands but not for <a>. And even if I add <a> at the end of this:
```
[( /<i class[\s\S]*?>[\s\S]*?<\/i>/gi ),( /<span class[\s\S]*?>[\s\S]*?<\/span>/gi ),( /<em class[\s\S]*?>[\s\S]*?<\/em>/gi ),( /<button class[\s\S]*?>[\s\S]*?<\/button>/gi ),( /<a class[\s\S]*?>[\s\S]*?<\/a>/gi )]
```
The result is the same. Editor makes two <a> statements.
Kind Regards