fix wq() to accept html fragments