HTML does not make the order of attributes significant, so it's not a
good idea to rely on a specific order.

Sounds like you want to strip out markup, so you should already be
running a whitelist of acceptable attributes, and not let through the
the rest. For example, you wouldn't want to let through any inline
event handler attributes, or inline styles.

This approach will help solve the issue you are having, as well as
giving you a starting point for consuming HTML safely.

Here's some guidance on doing that:

On Sat, Aug 22, 2009 at 5:17 AM, TCI<> wrote:
> Recently you added nofollow's, and now you moved the nofollow after
> the href. Some of us filter these out and you changing them is only
> making it more complicated. Please make up your mind and stop changing
> these...
> <a href="";>Fun140</a>
> <a rel="nofollow" href="";>Fun140</a>
> <a href=""; rel="nofollow">Fun140</a>

Reply via email to