首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 把HTML字符串保持HTML标签是。

把HTML字符串保持HTML标签是。

  • 资源大小:2.09 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: html 字符串 标签 保持

资 源 简 介

Cut html string by keeping html tags as it is With the use of WYSIWYG editor user can enter html content. While displaying teaser(short content) of the content on home page or dashboard it is hard to cut the string properly. This project provide solutions in php, javascript languages. Added Python Implementation of cut html string For more information check http://pypi.python.org/pypi/htmlcutstring/1.0 Using PHP code Download php-cut-html-string.tar.gz/.zip file and extract it. Include the cutstring.php file and use like this $data = "aaBB
  • one
  • two
  • three
";$wanted_count = 10; $cutstrObj = new HtmlCutString($data,$wanted_count);$new_string = $cutstrObj->cut();echo $new_string;// output aaBB<

文 件 列 表

htmlcutstring-1.1
setup.py
htmlcutstring.py
PKG-INFO
README.txt
VIP VIP
0.174644s