Tag stripping
-
WordPress.com keeps changing my HTML, I already saw almost all topics on the forum but still no solution; I’m trying to use anchor links to create an index for a post, wordpress keeps abusing changing their spots and repeating the links everywhere on the page, and yep I tried deactivating the visual rich without success, it changes as soon as I save, this is really frustrating, I assume this bug has been here for a while and I don’t understand why itsn’t fixed yet ??!!
-
-
Okay, I’m trying to make an index like that;
‘‘I.Introduction’‘
‘‘II.definition’‘
‘‘III.propriétés’‘ ……
……
‘<h3>’I.Introduction'</h3>‘
‘‘II.definition’‘
‘<h3>’propriétés'</h3>‘
That’s what I’m trying to write but wordpress keeps scrambling it, so I get this;
‘‘
‘<h3>’I.Introduction'</h3>’
‘‘‘ ‘
‘‘
and sometimes the anchor tag is moved to a wrong paragraph. -
sorry I didn’t exit all the code I typed, its;
I.Introduction
II.definition
III.propriétés
then;
<h3>I.Introduction</h3>
II.definition
<h3>propriétés</h3>
and then wordpress move all the anchors to wrong places. -
By looking at the source I see you’re doing this in your links:
<a href="#1"> 'I.Introduction' </a>And unless you omitted something, this is what I see in your “a” tags:
<a> <h3>'I.Introduction'</h3> </a>Have you tried doing this?
<a name="1"> <h3>'I.Introduction'</h3> </a>If you have, then this is probably a bug that wp.com needs to address since it’s supposed to support page jumps.
-
yes, verry sorry, I wrote it the right way, I just tryed to exit the codes the wrong way (confusing with css notes) but effectively I did it that way;
I.Introduction
...
<h3>I.Introduction</h3> -
I’ll modlook this so that a staff member can see this. If you used the right markup, then maybe this is a bug, since, like I said before, the software should support page jumps.
-
okay, thank you, I’m sure I used the right html, (just trouble escaping here) it’s not big deal and I checked anyway, I may also told you It worked just fine yesterday on another post, but not on my new post today and when I tried to edit the old post to figure out what could be the difference I lost both, thanks for your concern.
-
I found something, I don’t konw how to escape the link tag so I’m just gonna use (); when I put the link tag inside the <h3> tag: <h3>(a name=”1″) some text (/a)</h3>it works fine but when I do the opposit; the(a name=”1″) <h3>some text</h3>(/a) it doesn’t work, please just tell me; is this a markup issue or wordpress issue ?
-
WordPress still close the tag link before my title text (a name=”1″)(/a) then my text , but it’s better than the desorder I get the 1st time.
-
I should know better… my mistake. Actually the markup is not valid since the “h3” tag is a block-level element, while the “a” tag is an inline-level element. Although enclosing an “h3” tag inside an “a” tag would work, is not appropriate. Maybe that’s why wp is stripping things out.
Anyway, your solution _is_ valid or alternatively, you could try this:
<a name="1"></a><h3>'I.Introduction'</h3>That should work too.
-
- The topic ‘Tag stripping’ is closed to new replies.