restricted text max directive to attribute only