diff --git a/Doxyfile b/Doxyfile
index fdb92fe3..7d01f31d 100644
--- a/Doxyfile
+++ b/Doxyfile
@@ -31,7 +31,7 @@ PROJECT_NAME = HTMLPurifier
# This could be handy for archiving the generated documentation or
# if some version control system is used.
-PROJECT_NUMBER = 4.13.0
+PROJECT_NUMBER = 4.14.0
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.
diff --git a/NEWS b/NEWS
index 0c1fdd79..92c87218 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,21 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
. Internal change
==========================
+4.14.0, released 2021-12-24
+! Add "background-size" support (#289), contributed by Václav Smítal
+! Transform deprecated width attribute when tidying HTML, contributed by
+ Kieran.
+- PHP 8 support, contributed by Maksims Sļotovs.
+- Improved PHP 7.3 compatibility, contributed by kishor.
+- Avoid spurious magic quotes notice in PHP 7.4. Thanks
+ Jasper Zonneveld for the fix.
+- Do not remove thead from table even if there are no tbody/tr (#264).
+ Thanks Marcus Artner for the fix.
+- Fix "Parameter must be an array or an object that implements
+ Countable" (#285)". Thanks Kieran for this fix.
+. Fix unnecessary reference assignment, handling behavior change from
+ PHP5 and PHP7. Thanks Arkadiusz Biczewski for the fix.
+
4.13.0, released 2020-06-28
! Add %HTML.Forms directive, which lets you accept forms in user
HTML without requiring full %HTML.Trusted. Note that forms can
diff --git a/VERSION b/VERSION
index 01b73abe..09ce0ce7 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-4.13.0
\ No newline at end of file
+4.14.0
\ No newline at end of file
diff --git a/WHATSNEW b/WHATSNEW
index ae24886e..4d5e9291 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -1,4 +1,4 @@
-HTML Purifier 4.13.x is a maintenance release which fixes
-PSR-0 compatibility of our package. There are also a few
-new features (%HTML.Forms and tg@bgcolor support) and
-a number of minor bugfixes.
+HTML Purifier 4.14.x is a maintenance release which improves
+PHP7 and PHP8 compatibility. There are also some minor new features
+(background-size) and some miscellaneous fixes to remove notices
+from recent versions of PHP.
diff --git a/configdoc/usage.xml b/configdoc/usage.xml
index d1c8edb0..c0df5aba 100644
--- a/configdoc/usage.xml
+++ b/configdoc/usage.xml
@@ -19,37 +19,37 @@
- 240
+ 256
- 365
+ 381
- 369
+ 385
- 373
+ 389
- 377
+ 393
- 506
+ 522
- 522
+ 538
diff --git a/library/HTMLPurifier.includes.php b/library/HTMLPurifier.includes.php
index 151e6752..ee81cac6 100644
--- a/library/HTMLPurifier.includes.php
+++ b/library/HTMLPurifier.includes.php
@@ -7,7 +7,7 @@
* primary concern and you are using an opcode cache. PLEASE DO NOT EDIT THIS
* FILE, changes will be overwritten the next time the script is run.
*
- * @version 4.13.0
+ * @version 4.14.0
*
* @warning
* You must *not* include any other HTML Purifier files before this file,
diff --git a/library/HTMLPurifier.php b/library/HTMLPurifier.php
index 3c0f8a0e..2177fc85 100644
--- a/library/HTMLPurifier.php
+++ b/library/HTMLPurifier.php
@@ -19,7 +19,7 @@
*/
/*
- HTML Purifier 4.13.0 - Standards Compliant HTML Filtering
+ HTML Purifier 4.14.0 - Standards Compliant HTML Filtering
Copyright (C) 2006-2008 Edward Z. Yang
This library is free software; you can redistribute it and/or
@@ -58,12 +58,12 @@ class HTMLPurifier
* Version of HTML Purifier.
* @type string
*/
- public $version = '4.13.0';
+ public $version = '4.14.0';
/**
* Constant with version of HTML Purifier.
*/
- const VERSION = '4.13.0';
+ const VERSION = '4.14.0';
/**
* Global configuration object.
diff --git a/library/HTMLPurifier/Config.php b/library/HTMLPurifier/Config.php
index f74c1f04..16a6b322 100644
--- a/library/HTMLPurifier/Config.php
+++ b/library/HTMLPurifier/Config.php
@@ -21,7 +21,7 @@ class HTMLPurifier_Config
* HTML Purifier's version
* @type string
*/
- public $version = '4.13.0';
+ public $version = '4.14.0';
/**
* Whether or not to automatically finalize