Skip to content

Commit 9194874

Browse files
committed
changed unallow to disallow
1 parent 6681550 commit 9194874

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

html5lib/sanitizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def sanitize_token(self, token):
170170
if token["name"] in self.allowed_elements:
171171
return self.allowed_token(token, token_type)
172172
else:
173-
return self.unallowed_token(token, token_type)
173+
return self.disallowed_token(token, token_type)
174174
elif token_type == tokenTypes["Comment"]:
175175
pass
176176
else:
@@ -206,7 +206,7 @@ def allowed_token(self, token, token_type):
206206
token["data"] = [[name,val] for name,val in list(attrs.items())]
207207
return token
208208

209-
def unallowed_token(self, token, token_type):
209+
def disallowed_token(self, token, token_type):
210210
if token_type == tokenTypes["EndTag"]:
211211
token["data"] = "</%s>" % token["name"]
212212
elif token["data"]:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy