update
This commit is contained in:
parent
79f08fd202
commit
11e1bd975f
4 changed files with 41 additions and 6 deletions
|
@ -116,11 +116,7 @@ impl UIWidget for DivWidget {
|
|||
}
|
||||
|
||||
fn extended_class(&self) -> Vec<String> {
|
||||
if self.1 {
|
||||
self.extended_class_()
|
||||
} else {
|
||||
vec![]
|
||||
}
|
||||
vec![]
|
||||
}
|
||||
|
||||
fn render_with_class(&self, class: &str) -> Markup {
|
||||
|
|
|
@ -348,7 +348,7 @@ impl TextWidget {
|
|||
|
||||
#[must_use]
|
||||
pub fn title(mut self, title: &str) -> Self {
|
||||
self.title = Some(title.to_string());
|
||||
self.title = Some(title.replace('\'', "\\'"));
|
||||
self
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue