use substitude entities on dom document