@@ -167,7 +167,7 @@ func TibiaCharactersCharacterV3Impl(BoxContentHTML string) CharacterResponse {
167167 RowName := RowNameQuery .Nodes [0 ].FirstChild .Data
168168 RowData := RowNameQuery .Nodes [0 ].NextSibling .FirstChild .Data
169169
170- switch TibiaDataSanitizeNbspSpaceString (RowName ) {
170+ switch TibiaDataSanitizeStrings (RowName ) {
171171 case "Name:" :
172172 Tmp := strings .Split (RowData , "<" )
173173 CharacterInformationData .Name = strings .TrimSpace (Tmp [0 ])
@@ -224,7 +224,7 @@ func TibiaCharactersCharacterV3Impl(BoxContentHTML string) CharacterResponse {
224224 CharacterInformationData .Guild .Rank = RowData
225225
226226 //TODO: I don't understand why the unicode nbsp is there...
227- CharacterInformationData .Guild .GuildName = TibiaDataSanitizeNbspSpaceString (RowNameQuery .Nodes [0 ].NextSibling .LastChild .LastChild .Data )
227+ CharacterInformationData .Guild .GuildName = TibiaDataSanitizeStrings (RowNameQuery .Nodes [0 ].NextSibling .LastChild .LastChild .Data )
228228 case "Last Login:" :
229229 if RowData != "never logged in" {
230230 CharacterInformationData .LastLogin = TibiaDataDatetimeV3 (RowData )
@@ -330,8 +330,8 @@ func TibiaCharactersCharacterV3Impl(BoxContentHTML string) CharacterResponse {
330330 DeathKillers := []Killers {}
331331 DeathAssists := []Killers {}
332332
333- // store for reply later on.. and replacing \u00A0 with normal space
334- ReasonString := TibiaDataSanitizeNbspSpaceString (RemoveHtmlTag (subma1 [0 ][2 ] + " at Level " + subma1 [0 ][3 ] + " by " + subma1 [0 ][4 ] + "." ))
333+ // store for reply later on.. and sanitizing string
334+ ReasonString := TibiaDataSanitizeStrings (RemoveHtmlTag (subma1 [0 ][2 ] + " at Level " + subma1 [0 ][3 ] + " by " + subma1 [0 ][4 ] + "." ))
335335
336336 // if kill is with assist..
337337 if strings .Contains (subma1 [0 ][4 ], ". Assisted by " ) {
@@ -441,7 +441,7 @@ func TibiaCharactersCharacterV3Impl(BoxContentHTML string) CharacterResponse {
441441
442442 // Create the character and append it to the other characters list
443443 OtherCharactersData = append (OtherCharactersData , OtherCharacters {
444- Name : TmpCharacterName ,
444+ Name : TibiaDataSanitizeStrings ( TmpCharacterName ) ,
445445 World : subma1 [0 ][2 ],
446446 Status : TmpStatus ,
447447 Deleted : TmpDeleted ,
@@ -501,8 +501,8 @@ func TibiaDataParseKiller(data string) (string, bool, bool, string) {
501501 data = rs [0 ][2 ]
502502 }
503503
504- // replacing \u00A0 with normal space
505- data = TibiaDataSanitizeNbspSpaceString (data )
504+ // sanitizing string
505+ data = TibiaDataSanitizeStrings (data )
506506
507507 return data , isPlayer , isTraded , theSummon
508508}
0 commit comments