Locked sanitize and rdiscount versions