add replace function, reverse replace, base html