change html strings to phphtml