Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
5 subscribers
Views
2070 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
I need to be able to check a text variable for HTML tags when our Users copy and
sswilliams
over 8 years ago
I need to be able to check a text variable for HTML tags when our Users copy and paste text into a form. I want to be able to 'strip' the HTML tags from the text variable if a User does a copy an paste, else just store the data in the text variable. I have used the following expressions and none of them seem to work:
if(contains(pv!projectDescription,"SPAN"),striphtml(pv!projectDescription),pv!projectDescription)
if(like(pv!projectDescription,"SPAN*"),striphtml(pv!projectDescription),pv!projectDescription)
if(find(pv!projectDescription,"SPAN")>0,striphtml(pv!projectDescription),pv!projectDescription)
Is there a way to check a text variable for HTML tags and strip the tags so that the data will display without the tags in the up coming forms?
OriginalPostID-204473
OriginalPostID-204473
Discussion posts and replies are publicly visible
Parents
0
sswilliams
over 8 years ago
Some Users do a copy and paste and the striphtml() is needed. For Users who do not copy and paste but use formatting on the text (bullets, underline, insert a weblink, etc.) the striphtml() function removes the formatting that is needed. So if I could check for html, then the variable that does not have the tags would remain intact.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sswilliams
over 8 years ago
Some Users do a copy and paste and the striphtml() is needed. For Users who do not copy and paste but use formatting on the text (bullets, underline, insert a weblink, etc.) the striphtml() function removes the formatting that is needed. So if I could check for html, then the variable that does not have the tags would remain intact.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data