Print Page | Close Window

Strip markup tags

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=12141
Printed Date: 10 May 2025 at 5:01am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Strip markup tags
Posted By: znakeeye
Subject: Strip markup tags
Date Posted: 12 September 2008 at 5:33am
How do I strip markup tags? Is there such a function?
 
Sometimes, my tagged strings have not been saved in their "clean" state so I need to remove all tags somehow.
 
Any ideas?



Replies:
Posted By: Oleg
Date Posted: 15 September 2008 at 5:39am
Hi,
 
Check this post https://forum.codejock.com/forum_posts.asp?TID=10694 - https://forum.codejock.com/forum_posts.asp?TID=10694 .


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 15 September 2008 at 7:25am
Thanks, but I'm not sure how to use that technique with CXTPTaskDialog. I want to get the inner text from all elements to implement Ctrl+C functionality.


Posted By: Oleg
Date Posted: 15 September 2008 at 10:26am
Hi,
 
Catch WM_KEYDOWN,
Check Ctrl+C,
Get Top MarkupElement with m_strContent.m_pUIElement and
get text from it.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 16 September 2008 at 9:38am
Thanks, will check m_strContent.m_pUIElement. Couldn't find it before :P
 
FYI, OnKeyDown will not do the trick when a button has focus. PreTranslateMessage is the way to go, and bComCtl32 must be set to FALSE! :)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net