## Materials and Methods
### Characterization  
Elemental analyses (CHN) were performed on a Perkin Elmer CHN 2400 analyzer (Palo Alto, CA, USA).  
The acid number was determined by standard titration method.  
Attenuated total reflection Fourier transform infrared (ATR-FTIR) spectra were collected using a Bruker FTIR spectrophotometer TENSOR 27 in the frequency range of 4000 to 600 cm\({}^{-1}\), the resolution of the apparatus was 4 cm\({}^{-1}\).  
Differential scanning calorimetry (DSC) analyses were carried out on a Netzsch DSC 204 calorimeter ([PERSON], Germany). Samples of about 7 mg weight were placed in an aluminum pan with a pierced lid and heated to 500 \({}^{\circ}\)C at a heating rate of 10 \({}^{\circ}\)C-min\({}^{-1}\). The measurements were conducted under argon atmosphere. An empty pan was used as a reference. The samples were analyzed as received. Additionally, pDVB-SO\({}_{3}\)H was dried at 100 \({}^{\circ}\)C for 30 min. to remove adsorbed moisture.  
The porous structure parameters of the studied sorbents were determined by nitrogen sorption experiments, the isotherms were measured at \(-\)196 \({}^{\circ}\)C with adsorption analyzer ASAP 2405 (Micrometrics Inc., USA). Before analyses, the samples were outgassed at 140 \({}^{\circ}\)C for 1 h. The specific surface area was calculated using the standard BET method while the total pore volume was calculated as the volume of liquid adsorbate at a relative pressure of 0.99.  
To investigate the sorption properties of the prepared materials, laboratory cartridges were filled with 100 mg of the studied polymer. Next, the aqueous solution of ibuprofen (100 mg\(\cdot\)L\({}^{-1}\)), salicylic acid (100 mg\(\cdot\)L\({}^{-1}\)) and a standard methanolic mixture of phenols (phenol (P), 2-chlorophenol (ChP),  
\begin{table}
\begin{tabular}{c c c c c c} \hline
**Polymer** & **Monomer (g)** & \multicolumn{4}{c}{**Pore Forming Agents**} & **Initiator (g)** \\ \hline  & **DVB** & Toluene (mL) & Phenol (P) (g) & 2,4,6-Tricholophenol (T) (g) & AIBN (g) \\ \hline pDVB & 14 & 21 & & & 0.186 \\ pDVB-P & 14 & 20 & 1.07 & & 0.186 \\ pDVB-T & 14 & 20 & & 1.68 & 0.186 \\ pDVB-M & 14 & 20 & 0.54 & 0.84 & 0.186 \\ \hline \end{tabular}
\end{table}
Table 1: Details of the syntheses.  
2,4-dichlorophenol (DChP), and 2,4,6-trichlorophenol (TChP)--100 mg\(\cdot\)L\({}^{-1}\) of each compound) were prepared. The procedures of the sorption experiments and HPLC analyses for phenolic compounds were the same as in our previous works [7; 10]. The aqueous solution of the phenolic compounds (2 mg\(\cdot\)L\({}^{-1}\)) was prepared by dilution (1:50 _v/v_) of the standard methanolic solution. Different volumes of the aqueous solution were sucked through the cartridge connected to the water aspirator. Next, the phenolic compounds were eluted from cartridge with adequate volume of methanol (2 mL of MeOH for each 100 mL of sucked aqueous solution). The obtained eluates were analyzed using HPLC system - Waters 2690 Alliance (Waters, USA) equipped with an automatic sampler, UV detector Waters 2487 and \(\mu\)-BondapakTMC18 (3.9 \(\times\) 300 mm) column. As a mobile phase methanol: Water (60:40, _v/v_) at a flow rate of 1 mL/min\({}^{-1}\) was applied. Detection was performed at \(\lambda\) = 210 nm.  
The sorption of pharmaceuticals (ibuprofen and salicylic acid) was performed in the same way as phenols. The only difference regarded the parameters of HPLC analysis: A mobile phase methanol: Water (80:20, _v/v_), a flow rate of 1 mL\(\cdot\)min\({}^{-1}\), detection of ibuprofen was performed at 222 nm, and salicylic acid at 200.5 nm, respectively.