support Legacy_Textfilter callback feature

ref.
https://github.com/XoopsX/legacy/commit/6403aefbff8c42e676754e4c84e0707bebc4fa8f