Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hello,

Text parsing is not one of my strong points! I need to be able to take tagged text and convert it to formatted text and there can be 0 to many tags in one line to multiple paragraphs.

The tags are <RD>, </RD> for red text, <B>, </B> for bold, and <I>, </I> for Italic.

An example may look like:

<RD>This text will be red.</RD>

The text in this line will be black.

<B>The text here is bold</B> and

this text is black again, then

<I>this text is italicized.</I>

Formatted it would look like:

This text will be red.

The text in this line will be black.

The text here is bold and

this text is black again, then

this text is italicized.

Any ideas on how to process this would be greatly appreciated,

TIA,

John

Try =

Let ( [ 

formula = Substitute ( "" & Quote ( text ) & "" ; 

[ "<RD>" ;  Quote ( " & TextColor ( " ) ] ;

[ "</RD>" ;  Quote ( " ; 16646400 ) & " ) ] ;

[ "<B>" ;  Quote ( " & TextStyleAdd ( " ) ] ;

[ "</B>" ;  Quote ( " ; bold ) & " ) ] ;

[ "<I>" ;  Quote ( " & TextStyleAdd ( " ) ] ;

[ "</I>" ;  Quote ( " ; italic ) & " ) ] )

] ;

Evaluate ( formula )

)

  • Author

This works fantastic, thank you! I was thinking of something far more complex than this!

I definitely need to spend time with the "Let" and "Evaluate" functions!

Thanks again.

John

Try =

Let ( [ 

formula = Substitute ( "" & Quote ( text ) & "" ; 

[ "<RD>" ;  Quote ( " & TextColor ( " ) ] ;

[ "</RD>" ;  Quote ( " ; 16646400 ) & " ) ] ;

[ "<B>" ;  Quote ( " & TextStyleAdd ( " ) ] ;

[ "</B>" ;  Quote ( " ; bold ) & " ) ] ;

[ "<I>" ;  Quote ( " & TextStyleAdd ( " ) ] ;

[ "</I>" ;  Quote ( " ; italic ) & " ) ] )

] ;

Evaluate ( formula )

)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.