Ensure that p(:class => nil) renders to <p class>, so you can add valueless attributes like <input type="checkbox" checked>; ensure that rawtext(nil) simply does nothing.