mirror of
https://github.com/shuchkin/simplexlsxgen.git
synced 2023-08-10 21:12:59 +03:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
c9fa7da689 | |||
0d059fdf6e |
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 1.0.16 (2021-07-01)
|
||||||
|
|
||||||
|
* Fixed "&" in hyperlinks
|
||||||
|
|
||||||
## 1.0.15 (2021-06-22)
|
## 1.0.15 (2021-06-22)
|
||||||
|
|
||||||
* Fixed *mailto* hyperlinks detection
|
* Fixed *mailto* hyperlinks detection
|
||||||
|
@ -250,7 +250,7 @@ class SimpleXLSXGen {
|
|||||||
$RH = [];
|
$RH = [];
|
||||||
$filename = 'xl/worksheets/_rels/sheet' . ( $k + 1 ) . '.xml.rels';
|
$filename = 'xl/worksheets/_rels/sheet' . ( $k + 1 ) . '.xml.rels';
|
||||||
foreach ( $v['hyperlinks'] as $h ) {
|
foreach ( $v['hyperlinks'] as $h ) {
|
||||||
$RH[] = '<Relationship Id="' . $h['ID'] . '" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="' . $h['H'] . '" TargetMode="External"/>';
|
$RH[] = '<Relationship Id="' . $h['ID'] . '" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="' . $this->esc($h['H']) . '" TargetMode="External"/>';
|
||||||
}
|
}
|
||||||
$xml = str_replace( '{HYPERLINKS}', implode( "\r\n", $RH ), $template );
|
$xml = str_replace( '{HYPERLINKS}', implode( "\r\n", $RH ), $template );
|
||||||
$this->_writeEntry( $fh, $cdrec, $filename, $xml );
|
$this->_writeEntry( $fh, $cdrec, $filename, $xml );
|
||||||
|
Reference in New Issue
Block a user