Revise regex instead of unescaping js.