In the antisamy xml config, this is what I have set:
<regexp
name="offsiteURL"
value="(\s)*(http(s?)://|mailto:)[\p{L}\p{N}]+[~\p{L}\p{N}\p{Zs}\-_\.@\#\$%&;:,\?=/\+!\(\)]*(\s)*"/>
That seems to work except for links with the pound/hash sign in them.
For example: http://examplewebsite.com/example#section
antisamy using the above regex will reject that input and sanitize it. Can anyone help me modify that regex to allow the pound sign also?