{ "info": { "author": "Grupo ESOC Ingenier\u00eda de Servicios, Odoo Community Association (OCA)", "author_email": "support@odoo-community.org", "bugtrack_url": null, "classifiers": [ "Framework :: Odoo", "License :: OSI Approved :: GNU Affero General Public License v3", "Programming Language :: Python" ], "description": ".. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg\n :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n :alt: License: AGPL-3\n\n====================\nText from HTML field\n====================\n\nThis module provides some technical features that allow to extract text from\nany chunk of HTML, without HTML tags or attributes. You can chose either:\n\n* To truncate the result by amount of words or characters.\n* To append an ellipsis (or any character(s)) at the end of the result.\n\nIt can be used to easily generate excerpts.\n\nUsage\n=====\n\nThis module just adds a technical utility, but nothing for the end user.\n\nIf you are a developer and need this utility for your module, see these\nexamples and read the docs inside the code.\n\nPython example::\n\n @api.multi\n def some_method(self):\n # Get truncated text from an HTML field. It will 40 words and 100\n # characters at most, and will have \"...\" appended at the end if it\n # gets truncated.\n truncated_text = self.env[\"ir.fields.converter\"].text_from_html(\n self.html_field, 40, 100, \"...\")\n\nQWeb example::\n\n \n\n.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas\n :alt: Try me on Runbot\n :target: https://runbot.odoo-community.org/runbot/149/8.0\n\nKnown issues / Roadmap\n======================\n\n* An option could be added to try to respect the basic HTML tags inside the\n excerpt (````, ````, ``

``, etc.).\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues\n`_. In case of trouble, please\ncheck there if your issue has already been reported. If you spotted it first,\nhelp us smashing it by providing a detailed and welcomed `feedback\n`_.\n\nCredits\n=======\n\nContributors\n------------\n\n* Jairo Llopis \n\nMaintainer\n----------\n\n.. image:: https://odoo-community.org/logo.png\n :alt: Odoo Community Association\n :target: https://odoo-community.org\n\nThis module is maintained by the OCA.\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\nTo contribute to this module, please visit https://odoo-community.org.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://grupoesoc.es", "keywords": "", "license": "AGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo8-addon-html-text", "package_url": "https://pypi.org/project/odoo8-addon-html-text/", "platform": "", "project_url": "https://pypi.org/project/odoo8-addon-html-text/", "project_urls": { "Homepage": "https://grupoesoc.es" }, "release_url": "https://pypi.org/project/odoo8-addon-html-text/8.0.1.0.0.99.dev3/", "requires_dist": [ "lxml.html", "odoo (<9.0a,>=8.0a)" ], "requires_python": "~=2.7", "summary": "Generate excerpts from any HTML field", "version": "8.0.1.0.0.99.dev3" }, "last_serial": 3999100, "releases": { "8.0.1.0.0.99.dev1": [ { "comment_text": "", "digests": { "md5": "158df18d04112d7b403aab95a75bbb08", "sha256": "c84888804d84d317a1dea924bec0fdeed94e7e51e61e656a1a012f29519588a5" }, "downloads": -1, "filename": "odoo8_addon_html_text-8.0.1.0.0.99.dev1-py2-none-any.whl", "has_sig": false, "md5_digest": "158df18d04112d7b403aab95a75bbb08", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 20270, "upload_time": "2017-04-11T12:18:12", "url": "https://files.pythonhosted.org/packages/a4/f4/4fa82143916d81915d374531249fd9149450f1758894e7c11ac41c327ce9/odoo8_addon_html_text-8.0.1.0.0.99.dev1-py2-none-any.whl" } ], "8.0.1.0.0.99.dev2": [ { "comment_text": "", "digests": { "md5": "a603ee0d707cfe860e41e782987ccf81", "sha256": "f4f16f44ec755ce39a97d6bbb5bcaf8536ab56f55e79bb654c00a1a68557899a" }, "downloads": -1, "filename": "odoo8_addon_html_text-8.0.1.0.0.99.dev2-py2-none-any.whl", "has_sig": false, "md5_digest": "a603ee0d707cfe860e41e782987ccf81", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 20637, "upload_time": "2017-12-01T05:30:44", "url": "https://files.pythonhosted.org/packages/ee/44/9cb3b23d334925a772bee750ecbb84d6c3afb5f43cdc4562170307e8b316/odoo8_addon_html_text-8.0.1.0.0.99.dev2-py2-none-any.whl" } ], "8.0.1.0.0.99.dev3": [ { "comment_text": "", "digests": { "md5": "225fe636644be2ce0efc0c09e0812c60", "sha256": "c77575c1bf325830d560043b9cb3c4f9599412ecf567072b25f63801a25f5423" }, "downloads": -1, "filename": "odoo8_addon_html_text-8.0.1.0.0.99.dev3-py2-none-any.whl", "has_sig": false, "md5_digest": "225fe636644be2ce0efc0c09e0812c60", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 21065, "upload_time": "2018-06-25T05:03:39", "url": "https://files.pythonhosted.org/packages/8a/d8/c69f6a8abb420ad3732436d9fbc22720dd55e126efe4e2582554c45f1264/odoo8_addon_html_text-8.0.1.0.0.99.dev3-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "225fe636644be2ce0efc0c09e0812c60", "sha256": "c77575c1bf325830d560043b9cb3c4f9599412ecf567072b25f63801a25f5423" }, "downloads": -1, "filename": "odoo8_addon_html_text-8.0.1.0.0.99.dev3-py2-none-any.whl", "has_sig": false, "md5_digest": "225fe636644be2ce0efc0c09e0812c60", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 21065, "upload_time": "2018-06-25T05:03:39", "url": "https://files.pythonhosted.org/packages/8a/d8/c69f6a8abb420ad3732436d9fbc22720dd55e126efe4e2582554c45f1264/odoo8_addon_html_text-8.0.1.0.0.99.dev3-py2-none-any.whl" } ] }