From 2ae59c312d524326a7c5d08db2eb3dc83b93e34a Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 4 Sep 2013 16:45:32 +0530 Subject: [PATCH] [minor] added is_html function --- webnotes/utils/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webnotes/utils/__init__.py b/webnotes/utils/__init__.py index 040fee773a..cc3b68d7af 100644 --- a/webnotes/utils/__init__.py +++ b/webnotes/utils/__init__.py @@ -662,6 +662,14 @@ def unesc(s, esc_chars): s = s.replace(esc_str, c) return s +def is_html(text): + out = False + for key in ["
", "