Fixed sequence of a and p tags.

from <a><p></a></p> to <p><a></a></p>
Merge pull request #419 from jglodek/patch-2

Fixed sequence of a and p tags.