Parse HTML special characters before replacing content tags