Fri, 11 Apr 2003 08:09:21 +0000
[gaim-migrate @ 5473]
it dawned on me that since this function is so good at validating html, it
might be pretty good at stripping html. so now we use it instead of
strip_html and jabber messages don't get stripped of valid < and > characters
| 2086 | 1 | /* |
| 2 | The contents of this file are subject to the Mozilla Public License | |
| 3 | Version 1.1 (the "License"); you may not use this file except in | |
| 4 | compliance with the License. You may obtain a copy of the License at | |
| 5 | http://www.mozilla.org/MPL/ | |
| 6 | ||
| 7 | Software distributed under the License is distributed on an "AS IS" | |
| 8 | basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | |
| 9 | License for the specific language governing rights and limitations | |
| 10 | under the License. | |
| 11 | ||
| 12 | The Original Code is expat. | |
| 13 | ||
| 14 | The Initial Developer of the Original Code is James Clark. | |
| 15 | Portions created by James Clark are Copyright (C) 1998, 1999 | |
| 16 | James Clark. All Rights Reserved. | |
| 17 | ||
| 18 | Contributor(s): | |
| 19 | ||
| 20 | Alternatively, the contents of this file may be used under the terms | |
| 21 | of the GNU General Public License (the "GPL"), in which case the | |
| 22 | provisions of the GPL are applicable instead of those above. If you | |
| 23 | wish to allow use of your version of this file only under the terms of | |
| 24 | the GPL and not to allow others to use your version of this file under | |
| 25 | the MPL, indicate your decision by deleting the provisions above and | |
| 26 | replace them with the notice and other provisions required by the | |
| 27 | GPL. If you do not delete the provisions above, a recipient may use | |
| 28 | your version of this file under either the MPL or the GPL. | |
| 29 | */ | |
| 30 | ||
| 31 | ||
| 32 | /* 0x80 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 33 | /* 0x84 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 34 | /* 0x88 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 35 | /* 0x8C */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 36 | /* 0x90 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 37 | /* 0x94 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 38 | /* 0x98 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 39 | /* 0x9C */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 40 | /* 0xA0 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 41 | /* 0xA4 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 42 | /* 0xA8 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 43 | /* 0xAC */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 44 | /* 0xB0 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 45 | /* 0xB4 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 46 | /* 0xB8 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 47 | /* 0xBC */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, | |
| 48 | /* 0xC0 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | |
| 49 | /* 0xC4 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | |
| 50 | /* 0xC8 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | |
| 51 | /* 0xCC */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | |
| 52 | /* 0xD0 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | |
| 53 | /* 0xD4 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | |
| 54 | /* 0xD8 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | |
| 55 | /* 0xDC */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, | |
| 56 | /* 0xE0 */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3, | |
| 57 | /* 0xE4 */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3, | |
| 58 | /* 0xE8 */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3, | |
| 59 | /* 0xEC */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3, | |
| 60 | /* 0xF0 */ BT_LEAD4, BT_LEAD4, BT_LEAD4, BT_LEAD4, | |
| 61 | /* 0xF4 */ BT_LEAD4, BT_NONXML, BT_NONXML, BT_NONXML, | |
| 62 | /* 0xF8 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, | |
| 63 | /* 0xFC */ BT_NONXML, BT_NONXML, BT_MALFORM, BT_MALFORM, |