escape html entities for training edit page