Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1903 [ODT] add: question accept html #1904

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nicolas-eoxia
Copy link
Contributor

@nicolas-eoxia nicolas-eoxia commented Oct 4, 2024

			if (strpos($matches[2][0], 'href') !== false) { L387 fichier odf.php function _getDataFromHtml
				$pattern            = '/href="(https?:\/\/[^\s"]+)"/';
				$replacement        = '$1';
				$attributes['href'] = preg_replace($pattern, $replacement, $matches[2][0]);
			}
					if ($attribute != 'href') { L421
						$attributes[trim($attribute)] = true;
					}

		$value = strip_tags($value, '<a><br><strong><b><i><em><u><s><sub><sup><span>');	L182 odf.php convertVarToOdf

				case 'a': 
					$odtResult .= '<text:a xlink:href="' . $tag['attributes']['href'] . '">' . ($tag['children'] != null ? $this->_replaceHtmlWithOdtTag($tag['children'], $customStyles, $fontDeclarations, $encode) : $this->encode_chars($tag['innerText'], $encode, $charset)) . '</text:a>';
					break;  _replaceHtmlWithOdtTag L272

@nicolas-eoxia nicolas-eoxia self-assigned this Oct 4, 2024
@nicolas-eoxia nicolas-eoxia added 0 Enhancement New feature or request labels Oct 4, 2024
@nicolas-eoxia nicolas-eoxia linked an issue Oct 4, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 Enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

Manque les liens hypertexte dans l'odt
1 participant