HUE-1801 [fb] Introduce pages with scroll when viewing a file

Corrected page offset when scrolling and total pages are less than 50
Added HTML escaping