<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:12pt"><div><span>Hi.</span></div><div style="color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal; background-color: transparent;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal; background-color: transparent;"><span>Please forgive me if this is an easy one. &nbsp;It's late and I haven't found any mention of it.</span></div><div style="color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal; background-color: transparent;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family:
 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal; background-color: transparent;"><span>I'd like to encode form fields so that only the standard bold, italic, underline, list, etc. are allowed and and script, style, etc. tags are encoded. &nbsp;Also, I'd like to only let the base tags through and no attributes so setting an onmouseover in a paragraph is encoded. &nbsp;Basically I'm trying to avoid XSS and other nastiness.</span></div><div style="color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal; background-color: transparent;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal; background-color: transparent;"><span>Is there a module that does this to all parameters at once? &nbsp;Do i simply need to do it to each
 paramter I accept? &nbsp;For now I've been adding the html filter in my Template Toolkit templates, but that's a pain and relies on each output field filtering. &nbsp;I'd like to encode before storing the data in the database so it's safe no matter how it's presented.</span></div><div style="color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal; background-color: transparent;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal; background-color: transparent;">Any help is appreciated.</div><div style="color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal; background-color: transparent;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16.363636016845703px;
 font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal; background-color: transparent;">Thanks,</div><div style="color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal; background-color: transparent;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16.363636016845703px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-style: normal; background-color: transparent;">bill</div><div></div><div>&nbsp;</div><div></div><div><br><br><br><br></div><div><br><br></div></div></body></html>