mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
Filter HTML in ability picker.
This commit is contained in:
parent
f7314307a6
commit
abff5c1958
1 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ import org.apache.log4j.Logger;
|
|||
import org.jdesktop.layout.GroupLayout;
|
||||
import org.jdesktop.layout.LayoutStyle;
|
||||
import org.jdesktop.swingx.JXPanel;
|
||||
import org.jsoup.Jsoup;
|
||||
import org.mage.card.arcane.ManaSymbols;
|
||||
import org.mage.card.arcane.UI;
|
||||
|
||||
|
|
@ -434,6 +435,7 @@ public class AbilityPicker extends JXPanel implements MouseWheelListener {
|
|||
if (choice == null || choice.isEmpty()) {
|
||||
return choice;
|
||||
}
|
||||
choice = Jsoup.parse(choice).text(); // decode HTML entities and strip tags
|
||||
return choice.substring(0, 1).toUpperCase() + choice.substring(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue