User Tag List

Results 1 to 3 of 3

Thread: Removing characters from Edit Box/String

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Jaklar's Avatar
    Join Date
    Oct 2012
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Removing characters from Edit Box/String

    Heya,

    Here's my issue:

    I am trying to parse data from an XML API. One block I need, the product description, is parsing just fine, but the returned text has a bunch of HTML codes buried in the paragraphs.

    Is there a way I can remove these characters so the display for the end-user looks nice?

    Below is an example of what I am looking at:

    <description>Battle Masters is a fantasy miniatures battle game by Milton Bradley, presumably licensed from Games Workshop. The sizeable game box comes stuffed with tons of plastic miniatures, a deck of combat cards and some dice. Players move and fight their armies based upon what card is turned over from the deck. Combat is held on a large vinyl mat 4.5 ft square (Actual Measurements: 55 inches by 57 inches).&lt;br/&gt;&lt;br/&gt;From the back of the box:&lt;br/&gt;&lt;br/&gt;Welcome to the world of Battle Masters - the epic game where you command mighty armies locked in a legendary conflict of good versus evil!&lt;br/&gt;&lt;br/&gt;The noble Imperial Army is ready to meet the Forces of Chaos. You and your opponent must strategically guide 25 army units, featuring over 100 finely-detailed figures, across the gigantic 4 1/2' X 5' Battle Mat. Beware! Ditches, marshes, river fords and the great Border Tower lie before you.&lt;br/&gt;&lt;br/&gt;The battle unfolds as each turn of a Battle card tells which army units can move and which can attack. Will your army be victorious, or will your opponent destroy you? Who will survive the battle and win the game? The fate of the Empire is decided by you, the Battle Masters!&lt;br/&gt;&lt;br/&gt;Expanded by:&lt;br/&gt;&lt;br/&gt; Battle Masters: Chaos Warband&lt;br/&gt; Battle Masters: Imperial Lords&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description>


    How would one go about removing all of those "&lt;br/&gt;&lt;br/&gt;"?

    This is for iOS.

    Any help or guidance is greatly appreciated.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you get this from a webservice, you should maybe make your own webservice which get all the data required by your app and then make your app connects to your webservice. It will be lighter than processing it by the app and faster to download.

  3. #3
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Can't you use the String parser to replace all those occurences?

Similar Threads

  1. Register Characters Typed in Edit Box
    By Top_of_the_Temple in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th December 2012, 10:08 PM
  2. String characters substitution
    By Boba Fonts in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 26th February 2012, 05:33 PM
  3. Edit Box disable invalid characters
    By lordzero in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 22nd May 2009, 11:01 PM
  4. Removing Text from Edit Box?
    By Jesse in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 16th July 2008, 06:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •