Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Antkowiak <44241590+nantkowiak@users.noreply.github.com>2021-08-04 11:37:14 +0300
committerGitHub <noreply@github.com>2021-08-04 11:37:14 +0300
commit12c7ea581d7378185bc8c90d37360de61a033874 (patch)
tree0189e85402422454c4d79a05b7a0490872e27fde /program/include/rcmail.php
parent8d4043de7c2f9f4cdfcc6da84fb782a15f64579e (diff)
Add option to control links handling behavior on html to text conversion (#6485)
Co-authored-by: NAN <antkowiak@dionera.com>
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 7c3e74750..0bd970f9d 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1913,8 +1913,8 @@ class rcmail extends rcube
public function html2text($html, $options = [])
{
$default_options = [
- 'links' => true,
- 'width' => 75,
+ 'links' => $this->config->get('html2text_links', rcube_html2text::LINKS_DEFAULT),
+ 'width' => $this->config->get('html2text_width', 75),
'body' => $html,
'charset' => RCUBE_CHARSET,
];