From: Chris N. <pu...@po...> - 2000-11-07 20:15:39
|
OK, so postmodes is moved into code_param. These modes were used for stripByMode, and were text modes. Now there are numbers. We now have seven functions (all exported from Slash::Utility) in addition to stripByMode: strip_attribute(), strip_code(), strip_html(), strip_nohtml(), strip_literal(), strip_plaintext(), strip_extrans(). Where stripByMode took arguments STRING, MODE, NOWHITEFIX, the others take STRING, NOWHITEFIX (since MODE is done automatically), and each of these functions just calls stripByMode. stripByMode is NOT still there. Instead, use the function you want to do the function you want. If you get passed a postmode, then call strip_mode(). That is: print strip_literal($sometext); print strip_mode($someothertext, $form->{posttype}); Also, these 8 functions are available as filters in templates: [% FILTER strip_nohtml %][% form.data %][% END %] Let me know any questions you have about this. -- Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |