fixes a few HTML entity / tag bugs, resolves ranking calculation bug

...5782, fixes a few HTML entity / tag bugs