MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / replace_ltgt

Function replace_ltgt

utils/strfunctions.py:24–30  ·  view source on GitHub ↗

if fit name contained "<" or ">" then reprace to named html entity by EVE client. :param text_: string content of fit name from exported by EVE client. :return: if text_ is not instance of basestring then no manipulation to text_.

(text_)

Source from the content-addressed store, hash-verified

22
23
24def replace_ltgt(text_):
25 # type: (basestring) -> basestring
26 """if fit name contained "<" or ">" then reprace to named html entity by EVE client.
27 :param text_: string content of fit name from exported by EVE client.
28 :return: if text_ is not instance of basestring then no manipulation to text_.
29 """
30 return text_.replace("&lt;", "<").replace("&gt;", ">") if isinstance(text_, str) else text_

Callers 2

_resolve_shipFunction · 0.90
importXmlFunction · 0.90

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected