MarkupSafe

Yazılım ekran görüntüsü:
MarkupSafe
Yazılım detaylar:
Versiyon: 0.18
Qayıt: 11 May 15
Geliştirici: Armin Ronacher
Lisans: Ücretsiz
Popülerlik: 73

Rating: 3.5/5 (Total Votes: 2)

MarkupSafe HTML dizeleri destekleyen bir unicode alt sınıfı uygulayan bir yazılım:
>>> Markupsafe ithalat Biçimlendirme, kaçış
>>> Kaçış ("")
Biçimlendirme (u'alert (document.cookie); ')
>>> Tmpl = Biçimlendirme ("% s ")
>>> Tmpl% "Peter> Lustig"
Biçimlendirme (u ' Peter> Lustig ')
Henüz unicode değil ama kusur bilgilerini kaybetmek istemiyorum bir nesne unicode yapmak isterseniz, soft_unicode işlevini kullanabilirsiniz:
>>> Markupsafe ithalat soft_unicode gelen
>>> Soft_unicode (42)
u'42 '
>>> Soft_unicode (Biçimlendirme ('foo'))
Biçimlendirme (u'foo ')
Nesneler __html__ işlevi geçersiz kılarak onların HTML biçimlendirme eşdeğeri özelleştirebilirsiniz:
>>> Class Foo (object):
... Def __html __ (self):
... Dönüş ' güzel '
...
>>> Kaçış (Foo ())
Biçimlendirme (u ' güzel ')
>>> Biçimlendirme (Foo ())
Biçimlendirme (u ' güzel ')

Gereksinimleri :

  • Python

Benzer yazılım

hexedit
hexedit

18 Feb 15

oXygen XML Editor
oXygen XML Editor

22 Jun 18

XRNS-PHP
XRNS-PHP

14 Apr 15

Amoeba
Amoeba

3 Jun 15

Geliştirici Diğer yazılım Armin Ronacher

MarkupSafe
MarkupSafe

5 Jun 15

Logbook
Logbook

12 May 15

Jinja2
Jinja2

12 May 15

Yorumlar MarkupSafe

Yorum Bulunamadı
Yorum eklemek
Görüntülerde açın!