extracting strip_html

This commit is contained in:
Vinicius Moreira
2019-09-04 11:59:26 -03:00
parent a812355efa
commit 5d1905a988
3 changed files with 4 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ from PyQt5.QtWidgets import QDialog, QVBoxLayout, QGroupBox, \
QLineEdit, QLabel, QGridLayout, QPushButton, QPlainTextEdit, QToolBar
from bauh_api.abstract.cache import MemoryCache
from bauh.util import util
from bauh_api.util.html import strip_html
IGNORED_ATTRS = {'name', '__app__'}
@@ -63,7 +63,7 @@ class InfoDialog(QDialog):
if len(val) > 80:
full_val = val
self.full_vals.append(full_val)
val = util.strip_html(val)
val = strip_html(val)
val = val[0:80] + '...'
text.setText(val)